package com.cloudOffice.model.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@Data
public class BaseEntity implements Serializable {
	
	@TableId(type = IdType.AUTO)
	private Long id;
	
	@TableField("create_time")
	private Date createTime;
	
	@TableField("update_time")
	private Date updateTime;
	
	@TableLogic
	@TableField("is_deleted")
	private Integer isDeleted;
	
	@TableField(exist = false)
	private Map<String, Object> param = new HashMap<>();
}
